import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { ActDomainComponent } from '@app/domains/act/act-domain.component';
import { ValDomainComponent } from '@app/domains/val/val-domain.component';

@NgModule({
    imports: [
        RouterModule.forChild([
            {
                path: '',
                children: [
                    { path: 'act', component: ActDomainComponent, data: { permission: 'Mes58.Pages.Domain.Act' } },
                    { path: 'val', component: ValDomainComponent, data: { permission: 'Mes58.Pages.Domain.Val' } }
                ]
            }
        ])
    ],
    exports: [
        RouterModule
    ]
})
export class DomainRoutingModule { }
